public class Demo
{
    public static void main(String[] args) {
    	ClassLoader classLoader = new CustomClassloader();
    	Thread.currentThread().setContextClassLoader(classLoader);
        System.out.println("**beginning execution**");
        Greeter greeter = new Greeter();
        System.out.println("**created Greeter**");
        greeter.greet();
        new Thread(new Runnable() {
			
			@Override
			public void run() {
				System.out.println(Thread.currentThread().getContextClassLoader());
				 Greeter greeter = new Greeter();
			        System.out.println("**run created Greeter**");
			        greeter.greet();
			}
		}).start();
    }
}
